using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginUser"] == null)
        {
            lblUser.Text = "Guest";
            hplLogin.Text = "Login";
            hplLogin.NavigateUrl = "~/Login.aspx";
            hplCreateAccount.Text = "Create Account";
            hplCreateAccount.NavigateUrl = "~/Createaccount.aspx";
            ContentPlaceHolder2.Visible = false;
        }
        else
        {
            lblUser.Text = Session["loginUser"].ToString();
            hplLogin.Text = "Logout";
            hplLogin.NavigateUrl = "~/Signout.aspx";
            hplCreateAccount.Text = "My Account";
            hplCreateAccount.NavigateUrl = "~/Myaccount.aspx";
            ContentPlaceHolder2.Visible = true;
        }
        lblUseronline.Text = Application["usersonline"].ToString();
    }
}
